function CheckProductInfo(){
    var title=$('#mer_title').val();
    if($.trim(title)==''){
        alert('请填写标题');
        return false;
    }
    var price=$('#mer_price').val();
    if($.trim(price)==''){
        alert('请填写价格');
        return false;
    }
    var description=$('#mer_description').val();
    if($.trim(description)==''){
        alert('请填写描述');
        return false;
    }
}
function CheckFile(){
    var file_val=$('#file_input').val();
    if($.trim(file_val)==''){
        alert('请选择文件');
        return false;
    }
}
function SaveProductPrice(only_id,product_quoteid){
    var price=$.trim($('#bao_jia_'+only_id).val());
    var jia = $('#jia').text();
    if($.trim(price)==''){
    		alert('请填写报价');
        return false;
    }
     
    var orderid=$('#order_id_'+only_id).val();
    var productid=$("#product_id_"+only_id).val();
    var mer_productid=$("#mer_produdctid_"+only_id).val();
    var product_nums=$("#product_nums_"+only_id).val();
    var url="index.php?s=/Product/saveProductPriceData";
    $.post(url,{
        order_id:orderid,
        price:price,
        productid:productid,
        mer_productid:mer_productid,
        product_nums:product_nums,
        jia:jia,
        product_quoteid:product_quoteid
    },function(data){
			if(data.row > 0){
				alert('报价更新成功');
				window.location.href="";
			}else{
				alert('报价更新失败');
			}
    },"json");
}